<?php
$pro = new Product();

$info = $pro -> getShelvesByPid($pram[0]);
if(!$info)echo "<script type='text/javascript'>location.href='/home';</script>";
$image = $pro->getImage($pram[0]);
$color = $pro->getOneType($pram[0]);
$link = $pro -> showTypeLink($info['type']);


?>